package com.xiaoxie.system.mapper;

import com.xiaoxie.system.domain.DictType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface DictTypeMapper {
    List<DictType> getAllDictTypes();

    DictType getDictTypeByType(@Param("type") String type);

    void insertDictType(DictType dictType);

    List<DictType> getDictTypesLikeDesc(@Param("desc") String desc);

    void updateDictType(DictType dictType);

    void deleteDictTypeById(@Param("id") int id);


    DictType getDictTypeById(Integer id);

    List<DictType> getDictTypeCondition(DictType dictType);

    int countDictTypeByType(String type);

    List<Map<String, Object>> selectDictExportData(DictType dictType);
}
